import request from '@/utils/request'

export function getCategoryList(data) {
  return request({
    url: '/admin/system/configCategory/list',
    method: 'get',
    params: data
  })
}

export function createCategory(data) {
  return request({
    url: '/admin/system/configCategory/create',
    method: 'post',
    data: data
  })
}

export function updateCategory(data) {
  return request({
    url: '/admin/system/configCategory/update',
    method: 'post',
    data: data
  })
}

export function deleteCategory(data) {
  return request({
    url: '/admin/system/configCategory/delete',
    method: 'post',
    data: data
  })
}
